/**
 * @api {get} /order/findOrderByConditions findOrderByConditions
 * @apiName findOrderByConditions
 * @apiGroup Order
 * @apiDescription  检索订单   提供以下检索条件
 * channelsOrderNo
 userName
 phoneNumber
 SN
 airport 取机机场id
 batchID 批次id
 channelCompanyName 渠道id
 orderStatus 0 未审核, 1 为取消订单， 5为新增订单未出库 ，6 为订单出库， 7 为订单入库已完成订单 ， 8 为待完善订单
 userType 0为散客1为领队
 orderID 短号
 operator 操作者
 triplicateNo 三联单号
 OTA  1为ota 2为现场下单


 takeAwayTimeOfStart 取机时间
 takeAwayTimeOfOver
 leaseEndTimeOfStart   入境时间
 leaseEndTimeOfOver
 leaseBeginTimeOfStart  离境时间爱你
 leaseBeginTimeOfOver
 exWareHouseTimeOfStart   出库时间
 exWareHouseTimeOfOver
 inWareHouseTimeOfStart  入库时间
 inWareHouseTimeOfOver
 *
 * @apiExample Request:
 *  http://117.25.130.50:15407/Skyroam_OES/order/findOrderByConditions?orderStatus=8&placeOrderOperator=测试小明&pageSize=999&startAt=0
 *
 * @apiSuccessExample Success-Response:
 * {"status":200,"recordset":[
 *     {"orderID":2783,"orderStatus":8,"channelCompanyName":"1","channelsOrderNo":null,"userName":null,"phoneNumber":"",
 *     "triplicateNo":null,"leaseBeginTime":null,"leaseEndTime":null,
 *     "placeOrderTime":"2015-09-07T19:03:35.000Z","SKU":"10000001","realUseQuantity":8,"deviceQuantity":2,
 *     "takeAwayTime":"2015-09-07T19:03:35.000Z","airport":"10001","returnAirport":null,"foregiftStatus":null,
 *     "placeOrderOperator":"测试小明","errorMsg":null}],
 *     "pageSize":"999",
 *     "startAt":"0",
 *     "totalSize":1
 * }
 *
 * @apiErrorExample Error-Response:
 *{
 *    result:500,
 *    exception:"异常描述"
 *}
 **/

/**
 * @api {get} /order/findOrderInfoByOrderID findOrderInfoByOrderID
 * @apiName findOrderInfoByOrderID
 * @apiGroup Order
 * @apiDescription  查看订单详情
 *
 * @apiExample Request:
 *  http://117.25.130.50:15407/Skyroam_OES/order/findOrderInfoByOrderID?orderID=2644
 * @apiSuccessExample Success-Response:
 *
 * {"status":200,"record":
 *          {"orderID":2644,"batchID":null,"orderStatus":8,
 *          "orderType":0,"UIPIDs":null,"OTA":2,"channelCompanyName":"1",
 *          "channelsOrderNo":"","userType":0,"userName":"DT001",
 *          "phoneNumber":"17859728187","account":null,"triplicateNo":"71726262",
 *          "destination":"[\"ALQ\",\"HSKST\",\"JPZ\",\"RB\"]",
 *          "leaseBeginTime":"2015-09-01T03:13:00.000Z",
 *          "leaseEndTime":"2015-09-03T03:10:00.000Z","placeOrderTime":"2015-08-31T08:00:00.000Z",
 *          "flightNumber":"TD001","SKU":"10000006","SKUQuantity":null,"realUseQuantity":7,
 *          "deviceQuantity":2,"freightType":null,"takeAwayTime":"2015-09-01T01:44:00.000Z","airport":"10001",
 *          "returnType":null,"returnAirport":"",
 *          "deliveryTime":null,"receiveAddress":null,"postalCode":null,"payTypeOfRent":"3",
 *          "payTypeOfForegift":null,"foregiftStatus":"","realForegift":1000,"realPrice":406,
 *          "payTypeOfDeductPrice":null,"payTypeOfRefundPrice":null,"refundPrice":0,"deductPrice":null,
 *          "businessNumber":null,"orderRemark1":"","orderRemark2":"","orderRemark3":"","orderRemark4":"",
 *          "cancelReason":null,"leaderNo":"","leaderName":"","leaderPhone":"","couponCode":"","preferentialPrice":0,
 *          "leaderParent":"","leaderParentPhone":"","placeOrderOperator":"测试小明","inWareHouseOperator":"",
 *          "exWareHouseOperator":"测试小明","cancelOperator":null,"errorMsg":null,
 *          "deviceList":[{"orderID":2644,"SN":"sky177171716","systemOrderID":"","skyroamID":null,
 *                      "deviceType":null,"SKU":null,"exWareHouseTime":"2015-09-01T09:44:07.000Z","inWareHouseTime":null,"checkedStatus":null},
 *          {"orderID":2644,"SN":"sky71726626262","systemOrderID":"","skyroamID":null,
 *                      "deviceType":null,"SKU":null,"exWareHouseTime":"2015-09-01T09:44:07.000Z","inWareHouseTime":null,"checkedStatus":null}
 *                      ]}}
 *
 * @apiErrorExample Error-Response:
 *{
 *    result:500,
 *    exception:"异常描述"
 *}
 **/

/**
 * @api {post} /order/addOrder addOrder
 * @apiName addOrder
 * @apiGroup Order
 * @apiDescription  添加订单
 *
 * @apiExample Request:
 *{
 *  "placeOrderTime":"2015-09-08 00:00:00",
 *  "channelsOrderNo":"RT001",
 *  "destination":"[\"ALQ\"]",
 *  "null":"",
 *  "channelCompanyName":"4",
 *  "userName":"李鑫",
 *  "phoneNumber":"13871477540",
 *  "takeAwayTime":"2015-09-08 00:00:00",
 *  "leaseBeginTime":"2015-09-08 00:00:00",
 *  "flightNumber":"TD001","leaseEndTime":"2015-09-10 00:00:00",
 *  "airport":"10001",
 *  "returnAirport":"10002",
 *  "SKU":"10000011",
 *  "realUseQuantity":"2",
 *  "deviceQuantity":"1",
 *  "foregiftStatus":"渠道未收",
 *  "orderRemark1":"OTA——下单：渠道未收",
 *  "userType":"0",
 *  "freightType":"1"
 *  }
 *
 * @apiSuccessExample Success-Response:
 *{
 *    result:200,
 *    record:{"status":200,"record":{"fieldCount":0,"affectedRows":1,"insertId":2793,"serverStatus":2,"warningCount":4,"message":"","protocol41":true,"changedRows":0}}
 *}
 *
 * @apiErrorExample Error-Response:
 *{
 *    result:500,
 *    exception:"异常描述"
 *}
 **/

/**
 * @api {post} /order/placeOrder placeOrder
 * @apiName placeOrder
 * @apiGroup Order
 * @apiDescription  机场下单/快速下单（需要带上orderStatus:8）与addOrder的区别在于deviceList   addOrder只是添加一个订单还未取机，下单指的是已经取机
 *
 * @apiExample Request:
 *{"realPrice":"2397",
 * "airport":"10001",
 * "realForegift":"500",
 * "triplicateNo":"T0888",
 * "orderRemark1":"小啊",
 * "foregift":500,
 * "SKU":"66665555",
 * "exWareHouseOperator":"测试小明",
 * "placeOrderOperator":"测试小明",
 * "payTypeOfRent":6,"deviceQuantity":1,
 * "rent":2397,"payTypeOfForegift":4,
 * "realUseQuantity":3,"deviceList":[{"SN":"sky0000000000637"}],
 * "orderStatus":8}
 *
 * @apiSuccessExample Success-Response:
 *{
 *    result:200,
 *    record:{"status":200,"record":{"fieldCount":0,"affectedRows":1,"insertId":2793,"serverStatus":2,"warningCount":4,"message":"","protocol41":true,"changedRows":0}}
 *}
 *
 * @apiErrorExample Error-Response:
 *{
 *    result:500,
 *    exception:"异常描述"
 *}
 **/

/**
 * @api {post} /order/inWareHouse inWareHouse
 * @apiName inWareHouse
 * @apiGroup Order
 * @apiDescription  设备入库，一个订单如果多台设备需要同时入库不能分别入库
 *
 * @apiExample Request:
 *{"payTypeOfRefundPrice":6,
 * "orderRemark3":"还机",
 * "triplicateNo":"T0888",
 * "returnAirport":"10001",
 * "deviceList":[{"skyroamID":null,"exWareHouseTime":"2015-09-08T07:24:24.000Z","SN":"sky0000000000637",
 *              "SKU":null,"deviceType":null,"inWareHouseTime":null,
 *              "checkedStatus":"[\"1\",\"2\",\"3\"]","orderID":2788,"systemOrderID":""}],
 * "refundPrice":80,
 * "returnType":1,
 * "orderID":"2788"}
 *
 * @apiSuccessExample Success-Response:
 *{
 *    result:200,
 *    record:{"status":200,"record":{"fieldCount":0,"affectedRows":1,"insertId":2793,"serverStatus":2,"warningCount":4,"message":"","protocol41":true,"changedRows":0}}
 *}
 *
 * @apiErrorExample Error-Response:
 *{
 *    result:500,
 *    exception:"异常描述"
 *}
 **/

/**
 * @api {post} /order/exWareHouse exWareHouse
 * @apiName exWareHouse
 * @apiGroup Order
 * @apiDescription  设备出库，一个订单如果多台设备需要同时出库不能分别出库
 *
 * @apiExample Request:
 *{"realForegift":"500",
 * "triplicateNo":"7262672888",
 * "leaseEndTime":"2015-09-08T15:46:44.130",
 * "deviceList":[{"SN":"Sky7262628828282"}],
 * "exWareHouseOperator":"测试小明",
 * "orderID":"2781",
 * "payTypeOfDeductPrice":4}
 *
 * @apiSuccessExample Success-Response:
 *{
 *    result:200,
 *    record:{"status":200,"record":{"fieldCount":0,"affectedRows":1,"insertId":2793,"serverStatus":2,"warningCount":4,"message":"","protocol41":true,"changedRows":0}}
 *}
 *
 * @apiErrorExample Error-Response:
 *{
 *    result:500,
 *    exception:"异常描述"
 *}
 **/

/**
 * @api {post} /order/updateOrder updateOrder
 * @apiName updateOrder
 * @apiGroup Order
 * @apiDescription  更新订单
 *
 *
 * @apiExample Request:
 *{"orderID":2788,
 * "userType":0,
 * "takeAwayTime":"2015-09-07T23:24:24.000Z",
 * "placeOrderOperator":"测试小明",
 * "receiveAddress":null,
 * "SKUQuantity":null,
 * "channelCompanyName":"1",
 * "payTypeOfRefundPrice":null,"batchID":null,
 * "destination":"[\"AGT\",\"AEL\",\"ALQ\"]",
 * "returnAirport":null,
 * "postalCode":null,
 * "realUseQuantity":3,
 * "foregiftStatus":null,
 * "orderRemark3":null,
 * "triplicateNo":"T0888",
 * "leaderParentPhone":"13871470751",
 * "deductPrice":null,
 * "channelsOrderNo":null,
 * "SKU":"66665555",
 * "leaseEndTime":"2015-09-10T15:30:13",
 * "deliveryTime":null,
 * "payTypeOfRent":"6",
 * "orderType":0,
 * "account":null,
 * "couponCode":null,"flightNumber":"TD005",
 * "phoneNumber":"17859728187",
 * "freightType":1,
 * "refundPrice":null,
 * "leaderNo":"T008",
 * "userName":"陈皮",
 * "realPrice":2397,"leaderPhone":"13871470750",
 * "realForegift":500,"airport":"10001","leaderName":"刘新","orderRemark1":"小啊",
 * "leaseBeginTime":"2015-09-08T15:30:07","foregift":500,"cancelOperator":null,
 * "returnType":null,"exWareHouseOperator":"测试小明",
 * "deviceQuantity":1,"rent":2397,
 * "payTypeOfForegift":"4",
 * "cancelReason":null,
 * "orderRemark4":null,
 * "payTypeOfDeductPrice":null,
 * "orderRemark2":null,
 * "inWareHouseOperator":null,
 * "leaderParent":"刘明",
 * "UIPIDs":null,
 * "preferentialPrice":"60","OTA":2,"businessNumber":null,
 * "placeOrderTime":"2015-09-07T23:24:24.000Z",
 * "orderStatus":6}
 *
 * @apiSuccessExample Success-Response:
 *{
 *    result:200,
 *    record:{"status":200,"record":{"fieldCount":0,"affectedRows":1,"insertId":2793,"serverStatus":2,"warningCount":4,"message":"","protocol41":true,"changedRows":0}}
 *}
 *
 * @apiErrorExample Error-Response:
 *{
 *    result:500,
 *    exception:"异常描述"
 *}
 **/

/**
 * @api {post} /user/login login
 * @apiName login
 * @apiGroup user
 * @apiDescription  用户登录
 *
 *
 * @apiExample Request:
 * {"loginName":"xiaoming","password":"123456"}
 *
 * @apiSuccessExample Success-Response:
 * {"status":200,
 *  "record":{"userID":1,"userName":"测试小明","loginName":"xiaoming","tel":"12345678900","sex":111,"type":0,"mail":"666",
 *          "department":[{"id":"10001","gid":1,"sid":"10001","cnName":"北京首都T2"},
 *                          {"id":"10002","gid":2,"sid":"10002","cnName":"北京首都T3"}],
 *          "storage":null,
 *           "menuList":[
 *           {"menuID":1,"fID":0,"menuName":"订单管理"},
 *           {"menuID":2,"fID":1,"menuName":"全部订单"},{"menuID":8,"fID":2,"menuName":"创建订单"},
 *           {"menuID":9,"fID":2,"menuName":"机场下单"},{"menuID":11,"fID":2,"menuName":"导出订单"},
 *           {"menuID":12,"fID":2,"menuName":"取机"},{"menuID":13,"fID":2,"menuName":"还机"},{"menuID":14,"fID":2,"menuName":"编辑"},
 *           {"menuID":21,"fID":2,"menuName":"查看订单详情"},{"menuID":17,"fID":2,"menuName":"查看订单列表"},
 *           {"menuID":19,"fID":2,"menuName":"删除"},{"menuID":32,"fID":2,"menuName":"取消订单"},{"menuID":3,"fID":1,"menuName":"待完善订单"},
 *           {"menuID":24,"fID":3,"menuName":"完善订单"},{"menuID":30,"fID":3,"menuName":"查看订单详情"},
 *           {"menuID":4,"fID":0,"menuName":"客户管理"},{"menuID":28,"fID":4,"menuName":"查看客户列表"},
 *           {"menuID":5,"fID":0,"menuName":"系统设置"},{"menuID":6,"fID":5,"menuName":"账户管理"},
 *           {"menuID":22,"fID":6,"menuName":"增加用户"},{"menuID":23,"fID":6,"menuName":"修改用户"},
 *           {"menuID":25,"fID":6,"menuName":"查看用户信息"},{"menuID":26,"fID":6,"menuName":"查看用户列表"},
 *           {"menuID":27,"fID":6,"menuName":"删除用户"},{"menuID":29,"fID":6,"menuName":"重置密码"},
 *           {"menuID":7,"fID":5,"menuName":"系统设置"},{"menuID":10,"fID":2,"menuName":"导入订单"},
 *           {"menuID":15,"fID":10,"menuName":"导入历史"},{"menuID":16,"fID":10,"menuName":"解析上传文件"},
 *           {"menuID":18,"fID":10,"menuName":"确认导入订单"},{"menuID":20,"fID":10,"menuName":"批量删除订单"},
 *           {"menuID":31,"fID":null,"menuName":null}]},
 *           "token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwidW4iOiLmtYvor5XlsI_mmI4iLCJpcCI6Ijo6ZmZmZjoxMjcuMC4wLjEiLCJpYXQiOjE0NDE3MDM0Mzc0Njh9.9Q5xZTQM1iI6gKRk0O2HjdYiLZYgwuZWZEnzsgpL6wE"}
 * @apiErrorExample Error-Response:
 *{
 *    result:500,
 *    exception:"异常描述"
 *}
 **/

/**
 * @api {get} /constants/findCountry findCountry
 * @apiName findCountry
 * @apiGroup constants
 * @apiDescription  查看所有需要的国家
 *
 * @apiSuccessExample Success-Response:
 *  [
 *   {"cnName":"阿根廷","enName":"Argentina","code":"AGT","pinyin":"agenting","continent":{"cnName":"美洲","enName":"America"}},
 *   {"cnName":"爱尔兰","enName":"Ireland","code":"AEL","pinyin":"aierlan","continent":{"cnName":"欧洲","enName":"Europe"}}
 *   ]
 *
 **/

/**
 * @api {get} /constants/findGroupIDList findGroupIDList
 * @apiName findGroupIDList
 * @apiGroup constants
 * @apiDescription  查看所有渠道
 *
 * @apiSuccessExample Success-Response:
 *  [
 *  {"groupId":"1","groupName":"skyroam"},
 *  {"groupId":"2","groupName":"广东联通"},
 *  {"groupId":"3","groupName":"Amway"},
 *  {"groupId":"4","groupName":"CBC"},
 *  {"groupId":"5","groupName":"GSR"},
 *  {"groupId":"6","groupName":"PCCW"},
 *  {"groupId":"7","groupName":"国航"},
 *  {"groupId":"8","groupName":"途牛"}
 *  ]
 *
 **/

/**
 * @api {get} /constants/findSKUList findSKUList
 * @apiName findSKUList
 * @apiGroup constants
 * @apiDescription  根据groupID查找对应的sku
 *
 *  @apiExample Request:
 *  http://117.25.130.50:15407/Skyroam_OES/constants/findSKUList?gid=1
 *
 * @apiSuccessExample Success-Response:
 *  [
 *  {"skuId":"66665555","skuName":"途牛租机","productId":"70011001","productName":"24小时套餐","price":799,"currency":"CNY","commodityType":1,"behivaorType":0,"groupId":"1","desc":null},
 *  {"skuId":"10000001","skuName":"漫游宝租机套餐","productId":"70016001","productName":"","price":600,"currency":"CNY","commodityType":1,"behivaorType":0,"groupId":"1","desc":null},
 *  {"skuId":"10000002","skuName":"漫游宝购机套餐","productId":"10000001","productName":"流量包套餐","price":799,"currency":"CNY","commodityType":1,"behivaorType":1,"groupId":"1","desc":null},
 *  {"skuId":"10000003","skuName":"漫游宝购机裸机","productId":"10000001","productName":"","price":0.01,"currency":"CNY","commodityType":1,"behivaorType":1,"groupId":"1","desc":null},
 *  {"skuId":"90000002","skuName":"ARC-租机2","productId":"","productName":null,"price":11,"currency":"CNY","commodityType":1,"behivaorType":0,"groupId":"1","desc":""}
 *  ]
 *
 **/

/**
 * @api {get} /constants/findDamageList findDamageList
 * @apiName findDamageList
 * @apiGroup constants
 * @apiDescription  查看损坏赔偿
 *
 * @apiSuccessExample Success-Response:
 *  [
 *  {"id":1,"name":"完好","price":0},
 *  {"id":2,"name":"屏幕损坏","price":50},
 *  {"id":3,"name":"电池损坏","price":80},
 *  {"id":4,"name":"丢失","price":500},
 *  {"id":5,"name":"其它","price":20}
 *  ]
 *
 **/

/**
 * @api {get} /constants/findPreferentialWay findPreferentialWay
 * @apiName findPreferentialWay
 * @apiGroup constants
 * @apiDescription  查看优惠方式
 *
 * @apiSuccessExample Success-Response:
 *  [{"id":1,"name":"微信免预约"},{"id":2,"name":"最低价优惠"},{"id":3,"name":"三免一"},{"id":4,"name":"返点"}]
 *
 **/


